package com.czd.base.model;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Author: Jerry.hu
 * Create: Jerry.hu (14-8-27 13:52)
 * Description:
 * To change this template use File | Settings | File Templates.
 */
public class DyToken  implements Serializable {
	private static final long serialVersionUID = -3212536674066245950L;
	private Integer userCode;
	private Long token;

	/**
	 * 获得令牌中的工号
	 *
	 * @return Integer
	 */
	public Integer getUserCode() {
		return userCode;
	}

	/**
	 * 设置令牌中的工号
	 *
	 * @param userCode
	 */
	public void setUserCode(Integer userCode) {
		this.userCode = userCode;
	}

	/**
	 * 获得令牌中的标记
	 *
	 * @return Long
	 */
	public Long getToken() {
		return token;
	}

	/**
	 * 设置令牌中的标记
	 *
	 * @param token
	 */
	public void setToken(Long token) {
		this.token = token;
	}

	/**
	 * DyToken 默认构造函数
	 */
	public DyToken() {

	}

	/**
	 * 构造函数
	 *
	 * @param userCode 工号
	 * @param token    令牌标记
	 */
	public DyToken(Integer userCode, Long token) {
		this.userCode = userCode;
		this.token = token;
	}

	@Override
	public String toString() {
		return "DyToken [userCode=" + userCode + ", token=" + token + "]";
	}
}
